import request from "@/utils/request";
export const getAnswerByAskUuid = (uuid) => {
    return request({
        url: `/console/answer/askUuid/${uuid}`,
        method: 'get'
    })
}

export const getAnswers = (param) => {
    return request({
        params: {
            page: param.page,
            pageSize: param.pageSize,
            uuid: param.uuid,
            askUuid: param.askUuid,
            answererUuid: param.answererUuid,
            answererIp: param.answererIp,
            answererHostname: param.answererHostname,
            answererClient: param.answererClient,
            content: param.content,
            replyTimeBegin: param.replyTimeBegin,
            replyTimeEnd: param.replyTimeEnd,
            state: param.state
        },
        url: '/console/answer',
        method: 'get'
    })
}